#ifndef __rly_adhesion_h
#define __rly_adhesion_h

#ifdef APM32E10X_HD
	#include "apm32e10x_gpio.h"
	#include "apm32e10x_rcm.h"
	
#elif defined AT32F403AVGT7
	#include "at32f403a_407_gpio.h"
	#include "at32f403a_407_crm.h"
	
#else
	#include "apm32f10x_gpio.h"
	#include "apm32f10x_rcm.h"
#endif



/////// 继电器粘连检测  ////////
//引脚块1 = PD9
#define adhesion_RCM              RCM_APB2_PERIPH_GPIOD
#define adhesion_PinPort          GPIOD
#define adhesion_PinId            GPIO_PIN_9 

//// 函数定义 ////
void adhesion_init(void);
uint8_t adhesion_get_level(void);

#endif

